import { companyGetList } from "@/api";
export default {
  data() {
    return {
      companyList: [],
    };
  },
  beforeDestroy() {},
  methods: {
    async getCompany() {
      let { data } = await companyGetList({ page: 1, size: 100 });
      let list = [];
      data.forEach((e) => {
        list.push({ value: e.companyId, label: e.name });
      });
      this.companyList = list;
      this.$store.commit("updateCompanyList", list);
    },
  },
};
